Close
dtSearch Engine API for Java
FileConverter.setHits Method
Syntax
Java
public void setHits(int[] newHits);

To request hit highlighting using the beforeHit and afterHit strings, provide an array of hit offsets using setHits. The array returned from the SearchResults getHits method can be used for this purpose.